package com.project.service.impl;

import com.project.service.IUserService;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Service;

@Service("user")//实现指定实现类
@Scope("prototype")//实现类产生的对象为多实例
public class UserServiceImpl implements IUserService {
    @Override
    public void speak() {
        System.out.println("说话");
    }
}
